#include <stdio.h>
#define N 10

int main () {
    int i, j, size;
    double * a, * b;

    a = malloc(N * N * sizeof(double));
    b = malloc(N * N * sizeof(double));
    size = N;
    int lda = size;

    #pragma acc kernels loop private(i) copy(a[size][size]{lda},b[size][size]{lda}) copyin(size,i)
    for (i = 0; i < size; i++) 
       for (j = 0; j < size; i++) {
            a[i * lda + j] = i;
            b[i * lda + j] = a[i * lda + j];
    }

}

